<template>
	<view class="container">
		<u-cell-group>
			<u-cell title="客户名称" :value="info.nickname"></u-cell>
			<u-cell title="客户来源" :value="info.scource.name"></u-cell>
			<u-cell title="性别" :value="info.gender_text"></u-cell>
			<u-cell title="成交状态" :value="info.deal_text"></u-cell>
			<u-cell title="认证状态" :value="info.auth_text"></u-cell>
		</u-cell-group>
	</view>
</template>

<script>
	export default {
		data(){
			return{
				busid: 0,
				info:{
					source:{}
				}
			}
		},
		onLoad(options)
		{
			this.busid = options.busid ?? 0
			this.gethighseaInfo()
		},
		onReady(){
			this.$u.auth.check();
		},
		methods:{
			async gethighseaInfo()
			{
				let result = await this.$u.api.manage.highseaInfo({
					id: this.busid
				})
				if(result.code == 1)
				{
					this.info = result.data
				}
			}
		}
	}
</script>

<style>
	.container {
		padding: 8px;
	}
</style>